package entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Course implements Serializable {
    @Serial
    private static final long serialVersionUID = 7643170416233054127L;

    // 课程ID，用于唯一标识一门课程
    private Integer courseId;

    // 课程名称，用于显示课程的名称
    private String name;

    List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", name='" + name + '\'' +
                '}';
    }
}
